from django.contrib.contenttypes.fields import GenericRelation

from audit.models import AuditManagement


class ProjectSubMixin:
    def can_view(self, user):
        return self.project.can_view(user)
    
    def can_edit(self, user):
        return self.project.can_edit(user)
